package model

type ShortUrl struct {
	Id         int    `json:"id" gorm:"primary_key;autoIncrement:true"`
    ShortKey   string `json:"shortKey" gorm:"column:short_key;comment:短链;type:varchar(128);size:128;""`
	ClientIp   string `json:"clientIp" gorm:"column:client_ip;comment:访问IP;type:varchar(128);size:128;""`
	RealUrl  string `json:"realUrl" gorm:"column:realUrl;comment:真实链接;type:text;"`
	Username   string `json:"username" gorm:"column:username;comment:用户名;type:varchar(64);size:64;"`
	RecordTime string `json:"recordTime" gorm:"column:record_time;comment:记录时间;type:varchar(20);size:20;"`
}

func (ShortUrl) TableName() string {
	return "short_url"
}


